<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/tools/tools.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_1563a38af0d3a5e4a6330d6d45e9792a.html">tools</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tools.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tools_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __TOOLS_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __TOOLS_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// #define USER_MFCSTRING // 使用MFC CString（废弃），已用MFC中宏AFXAPI替代</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// #define EXPORT_LIBTOOLS    // Windows导出dll时请定义此宏 (目前在项目配置文件中定义)</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// Virtual c++</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#if defined(_MSC_VER)</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#   if (_MSC_VER &gt;= 1700)</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#       ifndef STD11</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#           define STD11</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#       endif</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#  endif</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#   ifndef WIN32</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#       define WIN32</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// g++</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#if (__GNUC__ &gt;= 5)</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#   ifndef STD11</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#       define STD11</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define  __STDC_WANT_LIB_EXT1__ 1</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifdef __x86_64__</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#   if !defined(_W64)</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#       define _W64</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="tools_8h.html#a356d23369e89837e73a13dcf6ee0d5b7">   34</a></span>&#160;<span class="preprocessor">#define USE_LIBTOOLS    using namespace LibTools</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">   36</a></span>&#160;<span class="preprocessor">#define DEF_BEG_LIBTOOLS namespace LibTools {</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">   38</a></span>&#160;<span class="preprocessor">#define DEF_END_LIBTOOLS }</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#ifdef STD11</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#   define  STD_MOVE(object) std::move(object)</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="tools_8h.html#acc6d8511211e23ff33647d261f6f8b59">   43</a></span>&#160;<span class="preprocessor">#   define  STD_MOVE(object) object</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">/*************************************************</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">*备注</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">*WCHAR暂时只支持WINDOWS</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">*************************************************/</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#ifndef WIN32</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="tools_8h.html#a157a956e14c5c44b3f73ef23a4776f64">   51</a></span>&#160;<span class="preprocessor">#   ifndef LINUX</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#       define LINUX</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#ifdef WIN32</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#   include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#   include &lt;tchar.h&gt;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#   include &lt;io.h&gt;</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">#   include &lt;WinSock2.h&gt;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">#   include &lt;WS2tcpip.h&gt;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#   include &lt;windef.h&gt;</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#   include &lt;<a class="code" href="_time_8h.html">time.h</a>&gt;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#   include &lt;stdarg.h&gt;</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#   include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#   include &lt;stdarg.h&gt;</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#if _MSC_VER &gt; 1500</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#   include &lt;cstdint&gt;</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#elif defined(LINUX)</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#   include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#   include &lt;sys/types.h&gt;</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#   include &lt;dirent.h&gt;</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#   include &lt;fcntl.h&gt;</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#   include &lt;unistd.h&gt;</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#   include &lt;sys/stat.h&gt;</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#   include &lt;wchar.h&gt;</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#   include &lt;<a class="code" href="_time_8h.html">time.h</a>&gt;</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#ifdef STD11</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#   include &lt;cstdint&gt;</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#   include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#   include &lt;sys/socket.h&gt;</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#   include &lt;errno.h&gt;</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#   include &lt;netinet/in.h&gt;</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#   include &lt;stdarg.h&gt;</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#if defined(WIN32) &amp;&amp; !defined(STATIC_LIBTOOLS)</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#   ifdef EXPORT_LIBTOOLS</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#       define LIBTOOLS __declspec(dllexport)</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#   else</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#       define LIBTOOLS __declspec(dllimport)</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">   95</a></span>&#160;<span class="preprocessor">#elif defined(LINUX) || defined(STATIC_LIBTOOLS)</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#   define LIBTOOLS</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="warning_8h.html">warning.h</a>&quot;</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="tools_8h.html#a00b0c78eb4f94af4f69948ba431a2e2f">  100</a></span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="tools_8h.html#aef0151f1669b87a6715646378c679d78">  101</a></span>&#160;<span class="preprocessor">#define EXTERNCPP       extern &quot;C++&quot; {</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">#define END_EXTERNCPP   }</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="tools_8h.html#a285ae8236e7a984a6692acf6530cd505">  104</a></span>&#160;<span class="preprocessor">#ifndef __USE_LARGEFILE64</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#   define __USE_LARGEFILE64 // 支持LINUX open64类系列函数</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="tools_8h.html#a5d8653a4b1086ca2f1f8c9a6ca6d1413">  108</a></span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">#define USERERRORNO 130</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="tools_8h.html#a26919845c725b85fefd041e3eb1035d9">  110</a></span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#define PARAMUNINIT 0xFFFFFFFF </span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#ifdef STD11</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#   define NullPtr nullptr</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">  119</a></span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#   define NullPtr NULL</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="tools_8h.html#a9154c0d0c21af4686624543215b4e5f2">  128</a></span>&#160;<span class="preprocessor">#ifndef WIN32</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="tools_8h.html#af559a7ae68520d96f21d0655d6792508">  129</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="tools_8h.html#a9154c0d0c21af4686624543215b4e5f2">LONG</a>;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">  130</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="tools_8h.html#af559a7ae68520d96f21d0655d6792508">LONGLONG</a>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">  131</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a>;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">  132</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">wchar_t</span> <a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="tools_8h.html#a4ae1dab0fb4b072a66584546209e7d58">  133</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>;</div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">  134</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="tools_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a>;</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="tools_8h.html#adbfeae90dcbc6d1e23fc52bb64339f46">  135</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>;</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">  136</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> <a class="code" href="tools_8h.html#adbfeae90dcbc6d1e23fc52bb64339f46">DWORD64</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">  137</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="tools_8h.html#a5850d5316caf7f4cedd742fdf8cd7c02">  138</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">  139</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="tools_8h.html#a5850d5316caf7f4cedd742fdf8cd7c02">USHORT</a>;</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="tools_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">  140</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a>;</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="tools_8h.html#ac2a430108882c24f0c36e13ec41d4691">  141</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tools_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="tools_8h.html#a74093316688c865a04323c2d0ab40246">  142</a></span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">long</span> <a class="code" href="tools_8h.html#ac2a430108882c24f0c36e13ec41d4691">intptr</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="tools_8h.html#a0de140856ee1eae76d64163a3c87b5e9">  143</a></span>&#160;    <span class="keyword">typedef</span> sockaddr_in <a class="code" href="tools_8h.html#a74093316688c865a04323c2d0ab40246">SOCKADDR_IN</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="tools_8h.html#afdd49e476b36e84a9d6d171110e79940">  144</a></span>&#160;    <span class="keyword">typedef</span> sockaddr_in6 <a class="code" href="tools_8h.html#a0de140856ee1eae76d64163a3c87b5e9">SOCKADDR_IN6</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="tools_8h.html#a18d15c208d9d4762f1fadbf52a39c7f3">  145</a></span>&#160;    <span class="keyword">typedef</span> sockaddr    <a class="code" href="tools_8h.html#afdd49e476b36e84a9d6d171110e79940">SOCKADDR</a>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="tools_8h.html#a35cd67ba7bb0db8105eb6267467535d7">  146</a></span>&#160;    <span class="keyword">typedef</span> sockaddr_storage <a class="code" href="tools_8h.html#a18d15c208d9d4762f1fadbf52a39c7f3">SOCKADDR_STORAGE</a>;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="tools_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">  147</a></span>&#160;<span class="preprocessor">    #define CHAR char</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="tools_8h.html#aa93f0eb578d23995850d61f7d61c55c1">  148</a></span>&#160;<span class="preprocessor">    #define TRUE 1</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="tools_8h.html#ab99ded389af74001a6298fc9e44e74e5">  149</a></span>&#160;<span class="preprocessor">    #define FALSE 0</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="tools_8h.html#ad16f14718feefaa629b3b7601ac9fdeb">  150</a></span>&#160;<span class="preprocessor">    #define MAX_PATH 256</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="tools_8h.html#a8d6eeef83351b95c2dad3b0bc26a5c51">  151</a></span>&#160;<span class="preprocessor">    #define __stdcall</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="tools_8h.html#a3107b1d0ca10d4ae4575d9107d4cbffe">  152</a></span>&#160;<span class="preprocessor">    #define __clrcall</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="tools_8h.html#ad9abff825685293cdca74669bbeb79f6">  153</a></span>&#160;<span class="preprocessor">    #define _stdcall</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="tools_8h.html#a9c50bd6a6ca6e0be76a0f3a79379b90e">  154</a></span>&#160;<span class="preprocessor">    #define _clrcall</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="tools_8h.html#aa74f89aa7d942f4a79ea12d7c9b763ef">  155</a></span>&#160;<span class="preprocessor">    #define _Out_</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="tools_8h.html#ab521aa5010fb1afb801a899a55569e03">  156</a></span>&#160;<span class="preprocessor">    #define _In_</span></div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="tools_8h.html#aabb8b876e7495cfb11a152cdf728815c">  157</a></span>&#160;<span class="preprocessor">    #define HANDLE void*</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">    #define _snprintf snprintf</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="tools_8h.html#aa84a29002ab81c719c0d07bb446296e0">  159</a></span>&#160;<span class="comment">    /*********同步函数操作宏定义 begin********/</span></div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="tools_8h.html#abb2c63c1933cab709a4fd4aef2012bbb">  160</a></span>&#160;<span class="preprocessor">    #define INFINITE 0xFFFFFFFF         // 事件一直等待直到有信号为止</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="tools_8h.html#a5578de68603dc6185924f95f1ae4be6e">  161</a></span>&#160;<span class="preprocessor">    #define WAIT_OBJECT_0 0             // 等待成功</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="tools_8h.html#ac5425c25bf79dba241265bcc8f869715">  162</a></span>&#160;<span class="preprocessor">    #define WAIT_TIMEOUT 0x00000102L    // 等待超时</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="tools_8h.html#a67d4bc2b7cce253843984b8e1bb60519">  163</a></span>&#160;<span class="preprocessor">    #define WAIT_FAILED  0xFFFFFFFF     // 等待失败，发生错误</span></div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="preprocessor">    #define MAXIMUM_WAIT_OBJECTS 64</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="comment">    /*********同步函数操作宏定义 end********/</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="tools_8h.html#a300f297d84aa903d52cc236608f854c3">  167</a></span>&#160;    <span class="comment">//路径</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="tools_8h.html#ac68cbf516db9df8da663c3ac05db2dcb">  168</a></span>&#160;<span class="preprocessor">    #define _getcwd getcwd</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="tools_8h.html#aa4453644fed26c6274f439b70881dbbf">  169</a></span>&#160;<span class="preprocessor">    #define _wgetcwd wgetcwd</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor">    #define _access access</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="comment">// 字符串、文件操作</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="preprocessor">    #if defined(UNICODE) || defined(_UNICODE)</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">        #define TCHAR WCHAR</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor">        #define _tcslen wcslen</span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">        #define _tcscpy wcscpy</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">        #define _tcscat wcscat</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">        #define _taccess waccess</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor">        #define _tprintf wprintf</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor">        #define _tcscmp wcscmp</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor">        #define _tcsncmp wcsncmp</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor">        #define _tcsncpy wcsncpy</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">        #define _sntprintf swprintf</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">        #define tcscpy_safe wcscpy_safe</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor">        #define tsprintf_safe wsprintf_safe</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="preprocessor">        #define TEXT(str) L##str</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">        #define _tfopen wfopen</span></div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">  187</a></span>&#160;<span class="preprocessor">    #else</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="tools_8h.html#a127d2fa204bf091738a6d3b1c0671d9e">  188</a></span>&#160;<span class="preprocessor">        #define  TCHAR CHAR</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="tools_8h.html#ad253c68ce58b12b277fedc2d785d7977">  189</a></span>&#160;<span class="preprocessor">        #define _tcscmp strcmp</span></div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="tools_8h.html#a181225a46a4d86ddcbcd23bfc0982dee">  190</a></span>&#160;<span class="preprocessor">        #define _tcslen strlen</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="tools_8h.html#a170b7aaa68da11593c3cb97699ca7500">  191</a></span>&#160;<span class="preprocessor">        #define _tcscpy strcpy</span></div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="tools_8h.html#a3f16d54b8d2b6c3de321e830f99864fa">  192</a></span>&#160;<span class="preprocessor">        #define _tcscat strcat</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="tools_8h.html#aa268b3f86c63382be0f3d63e399f1cdb">  193</a></span>&#160;<span class="preprocessor">        #define _taccess access</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="tools_8h.html#ac642483f39ee6964424790720b48aee3">  194</a></span>&#160;<span class="preprocessor">        #define _tcsncmp strncmp</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="tools_8h.html#a5fc7b9645f751ccc053f6f59ab0d8924">  195</a></span>&#160;<span class="preprocessor">        #define _tprintf printf</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="tools_8h.html#aad0cc0637768c5eda50cb458f023066a">  196</a></span>&#160;<span class="preprocessor">        #define TEXT(str) str</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="tools_8h.html#ad437e0640c6c09ee0b71db8ae56338f4">  197</a></span>&#160;<span class="preprocessor">        #define _sntprintf snprintf</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="tools_8h.html#a1d1f59e3128c46d990260a71f447b5ad">  198</a></span>&#160;<span class="preprocessor">        #define tsprintf_safe sprintf_safe</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="tools_8h.html#a2c2000c5cd1b5ee50319176e11045bc4">  199</a></span>&#160;<span class="preprocessor">        #define _tcsncpy strncpy</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="tools_8h.html#a65d483a46d24b40308cab4b44d147d7f">  200</a></span>&#160;<span class="preprocessor">        #define tcscpy_safe strcpy_safe</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">        #define _tfopen fopen</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html">  202</a></span>&#160;<span class="preprocessor">    #endif // endif UNICODE || _UNICODE</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">union </span><a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html">_LARGE_INTEGER</a> {</div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a31b355710eddf921785ba5d27883f511">  204</a></span>&#160;        <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a9b8939bdf30481e7477d6094c107e65b">  205</a></span>&#160;            <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a31b355710eddf921785ba5d27883f511">LowPart</a>;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            <a class="code" href="tools_8h.html#a9154c0d0c21af4686624543215b4e5f2">LONG</a> <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a9b8939bdf30481e7477d6094c107e65b">HighPart</a>;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        } <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a7347711eef80393843cf49555b636a32">DUMMYSTRUCTNAME</a>;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a31b355710eddf921785ba5d27883f511">LowPart</a>;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            <a class="code" href="tools_8h.html#a9154c0d0c21af4686624543215b4e5f2">LONG</a> <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a9b8939bdf30481e7477d6094c107e65b">HighPart</a>;</div>
<div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a34beb9c05c3a2982d57fc450cc934ae3">  211</a></span>&#160;        } <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a7c7e7043ad457a46ef6f6a698606b921">u</a>;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <a class="code" href="tools_8h.html#af559a7ae68520d96f21d0655d6792508">LONGLONG</a> <a class="code" href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a34beb9c05c3a2982d57fc450cc934ae3">QuadPart</a>;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    } <a class="code" href="tools_8h.html#a1638d44e4150a318c2791b2f719787aa">LARGE_INTEGER</a>;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="tools_8h.html#a26769957ec1a2beaf223f33b66ee64ab">  215</a></span>&#160;<span class="preprocessor">#   ifndef INVALID_SOCKET</span></div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#       define INVALID_SOCKET (SOCKET)(~0)</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="tools_8h.html#aff55fe551a9992a54ec54621c524d0a4">  217</a></span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="preprocessor">#   define SOCKET int</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="preprocessor">#   if defined(UNICODE) || defined(_UNICODE)</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor">#       define tcscpy_safe wcscpy_safe</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor">#       define tsprintf_safe wsprintf_safe</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="preprocessor">#   else</span></div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;<span class="preprocessor">#       define tcscpy_safe strcpy_safe</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">#       define tsprintf_safe sprintf_safe</span></div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="preprocessor">#endif // ifndef WIN32</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="comment">// 指针定义</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="preprocessor">#ifdef LINUX</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;<span class="preprocessor">#   if defined(_W64)</span></div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="preprocessor">#       define INTPTR_T INT64</span></div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="preprocessor">#       define UINTPTR_T UINT64</span></div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="tools_8h.html#a0fd4fe576501753d7573c0b1e623f289">  234</a></span>&#160;<span class="preprocessor">#   else</span></div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="tools_8h.html#a3e80c98d15f3d7dd0e09c56379806375">  235</a></span>&#160;<span class="preprocessor">#       define INTPTR_T int</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="preprocessor">#       define UINTPTR_T UINT</span></div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">  237</a></span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="keyword">typedef</span> <a class="code" href="tools_8h.html#a0fd4fe576501753d7573c0b1e623f289">INTPTR_T</a> <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a>;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="preprocessor">#endif // endif linux intptr_t</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="preprocessor">#ifdef WIN32</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="preprocessor">#   if defined(_WIN64)</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="preprocessor">#       define INTPTR_T INT64</span></div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="preprocessor">#       define UINTPTR_T UINT64</span></div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="preprocessor">#   else</span></div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="preprocessor">#       define INTPTR_T int</span></div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="preprocessor">#       define UINTPTR_T UINT</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="keyword">typedef</span> <a class="code" href="tools_8h.html#a0fd4fe576501753d7573c0b1e623f289">INTPTR_T</a> <a class="code" href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a>;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="preprocessor">#endif // endif WIN32 intptr_t</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="tools_8h.html#acbf03b87f07f587a6e72384c9141182a">  252</a></span>&#160;<span class="preprocessor">#ifdef LINUX</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="preprocessor">#   define long_t long</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="preprocessor">#elif defined WIN32</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="preprocessor">#   if defined(_WIN64)</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="preprocessor">#       define long_t INT64</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor">#   else</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor">#       define long_t int</span></div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="preprocessor">#endif // endif long_t</span></div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="tools_8h.html#ac02341059cfb9aa89a709d85074dd300">  267</a></span>&#160;<span class="preprocessor">#define FLT_DOT 0.0000001                       // 7位</span></div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="tools_8h.html#a0a1a2d178903e92b1eba4fe81ef9c09c">  268</a></span>&#160;<span class="preprocessor">#define MINUX_FLT_DOT -0.00000001               // 8位</span></div>
<div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="tools_8h.html#a4e9d5b8d36af265f708cc1e3824712e5">  269</a></span>&#160;<span class="preprocessor">#define DOE_DOT 0.000000000000001               // 15位</span></div>
<div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="tools_8h.html#a9e181d2bb4fac187cebfbb1445795120">  270</a></span>&#160;<span class="preprocessor">#define MINUX_DOE_DOT -0.0000000000000001       // 16位</span></div>
<div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="tools_8h.html#a9832b3ede9aaf61eccff792b9132616d">  271</a></span>&#160;<span class="preprocessor">#define DOE_DOT_COUNT   15</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="tools_8h.html#a6a2bdeed281a8cd1d2e9e4887cdeadc7">  272</a></span>&#160;<span class="preprocessor">#define FLT_DOT_COUNT   7</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="preprocessor">#define NORMAL_DOT_COUNT 6                      // 常用6位</span></div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160; </div>
<div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="tools_8h.html#a8a597a724368a787db843bef46246744">  280</a></span>&#160;<span class="preprocessor">#define FILE_ONLYREAD 1             </span></div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="tools_8h.html#aaa2bb929a5d07a095aaffb7f91ae2c73">  281</a></span>&#160;<span class="preprocessor">#define FILE_ONLYWRITE 2            </span></div>
<div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="tools_8h.html#a906640a4babb32b77add1fc00f56ade5">  282</a></span>&#160;<span class="preprocessor">#define FILE_READWRITE  4           </span></div>
<div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="tools_8h.html#aafafb562e1fac464950ede9ab60983d7">  283</a></span>&#160;<span class="preprocessor">#define FILE_SHARE   8              </span></div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="tools_8h.html#ae48026a3828fdacfa90766cf5f2448cf">  284</a></span>&#160;<span class="preprocessor">#define FILE_INDEPENDENT 16         </span></div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="tools_8h.html#a421a5fc298e2d6f5a4c8557023434aa0">  285</a></span>&#160;<span class="preprocessor">#define FILE_TRUC 32                </span></div>
<div class="line"><a name="l00286"></a><span class="lineno"><a class="line" href="tools_8h.html#a3d8d4460ceb75be36810d1cc039f6853">  286</a></span>&#160;<span class="preprocessor">#define FILE_HIDE 64                </span></div>
<div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="tools_8h.html#a449fb273a677a26fb84d3328dfb0da09">  287</a></span>&#160;<span class="preprocessor">#define FILE_ASYN   128             </span></div>
<div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="tools_8h.html#ad53cf20262a1c8fda010ca8d8b1df846">  288</a></span>&#160;<span class="preprocessor">#define FILE_CREATEPLUS 256         </span></div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="preprocessor">#define FILE_EXCL       512         </span></div>
<div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="tools_8h.html#a7c3bbd9732668a3188d931034a5f230b">  290</a></span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="tools_8h.html#ae2c4c68b8f9b63358f8c8f32b77ecb09">  291</a></span>&#160;<span class="preprocessor">#define FILE_SEEK_CUR   1           </span></div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="tools_8h.html#a3c580687c3aced8196380525e9532973">  292</a></span>&#160;<span class="preprocessor">#define FILE_SEEK_SET   0           </span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="preprocessor">#define FILE_SEEK_END   2           </span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="tools_8h.html#af330a390be3908796a20f19c2f29bac4">  300</a></span>&#160;<span class="preprocessor">#define FILE_DIR     0              </span></div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="tools_8h.html#a591d71072e6cd28616bc61e3b7b337c5">  301</a></span>&#160;<span class="preprocessor">#define FILE_NORMAL  1              </span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="preprocessor">#define FILE_SYSTYPE 2              </span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="tools_8h.html#ab00d7bdead70fa34f855541305b0c89e">  306</a></span>&#160;<span class="preprocessor">#define FILE_HANDLE intptr_t</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html">_FILEFINDINFO_</a></div>
<div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a857b9e763ea3e183a8e6a582af305c82">  313</a></span>&#160;{</div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a3e6510c0f73543a8d7adf32441236814">  314</a></span>&#160;    <a class="code" href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a> <a class="code" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a857b9e763ea3e183a8e6a582af305c82">szFileName</a>[<a class="code" href="tools_8h.html#ab99ded389af74001a6298fc9e44e74e5">MAX_PATH</a>];     </div>
<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a12703399394ee01b4753a90543f1e3c6">  315</a></span>&#160;    <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> <a class="code" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a3e6510c0f73543a8d7adf32441236814">fwFileAttributes</a>;         </div>
<div class="line"><a name="l00316"></a><span class="lineno"><a class="line" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#ad9c9e6207a688f672d689fa75f83da1a">  316</a></span>&#160;    <a class="code" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> <a class="code" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a12703399394ee01b4753a90543f1e3c6">dwFilesize</a>;               </div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#aeac0f7a7b532ebfa75dc0becaf579692">  317</a></span>&#160;    time_t <a class="code" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#ad9c9e6207a688f672d689fa75f83da1a">tCreateTime</a>;             </div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    time_t <a class="code" href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#aeac0f7a7b532ebfa75dc0becaf579692">tUpdateTime</a>;             </div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;}<a class="code" href="tools_8h.html#a0b73c5631b3d84850be4744657e3c920">FILEFINDINFO</a>, *<a class="code" href="tools_8h.html#a67369fb17cf5023754a0db996c81a6af">PFILEFINDINFO</a>;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;<span class="preprocessor">#ifdef WIN32</span></div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="preprocessor">#   define THREADPTR UINTPTR_T</span></div>
<div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="tools_8h.html#ad5d1d4448f0dd70f644916217fa0f5d6">  327</a></span>&#160;<span class="preprocessor">#elif defined(LINUX)</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;<span class="preprocessor">#   define THREADPTR pthread_t</span></div>
<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="tools_8h.html#a01e895c2df346ffe662bbe69686d8d51">  329</a></span>&#160;<span class="preprocessor">#endif // endif THREADPTR</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="preprocessor">#define SYNCHANDLE INTPTR_T  </span></div>
<div class="line"><a name="l00331"></a><span class="lineno"><a class="line" href="tools_8h.html#a7ffc5eed915079f22f24d5ac0b81a2cb">  331</a></span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="preprocessor">#define THREAD_STACK_MIN 8192*1024  </span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="preprocessor"></span> </div>
<div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="tools_8h.html#a8c4b94ef011acbcc6359107d2efb3d25">  334</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*<a class="code" href="tools_8h.html#a8c4b94ef011acbcc6359107d2efb3d25">ThreadRoutine</a>)(<span class="keywordtype">void</span>* arg);</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="comment">/*********************************************************/</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="preprocessor">#ifdef STD11</span></div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;<span class="preprocessor">#   define delete_class_copy_operator(ClassName) ClassName(const ClassName &amp;)=delete; ClassName &amp; operator= (const ClassName &amp;) = delete</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">  345</a></span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="preprocessor">#   define delete_class_copy_operator(ClassName)  private: ClassName(const ClassName &amp;); ClassName &amp; operator = (const ClassName &amp;)</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160; </div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">char</span>* <a class="code" href="tools_8h.html#ab82a2bbb5954c74bdfca135815c3a1c9">strcpy_safe</a>(<span class="keywordtype">char</span> *dst, <span class="keywordtype">size_t</span> nBufSize, <span class="keyword">const</span> <span class="keywordtype">char</span>* src, <span class="keywordtype">size_t</span> srcLen = 0)</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;{</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="preprocessor">#if defined(WIN32) || (defined(STD11) &amp;&amp; defined(__STDC_LIB_EXT1__))</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    strcpy_s(dst, nBufSize, src);</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keywordflow">if</span> (srcLen == 0) srcLen = strlen(src);</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    strncpy(dst, src, nBufSize &lt; srcLen ? nBufSize : srcLen);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    *(dst + nBufSize - 1) = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="keywordflow">return</span> dst;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;}</div>
<div class="line"><a name="l00369"></a><span class="lineno"><a class="line" href="tools_8h.html#a127db5f6472e5441ce11cc031958c3f5">  369</a></span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="keyword">inline</span> <a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a>* <a class="code" href="tools_8h.html#a127db5f6472e5441ce11cc031958c3f5">wcscpy_safe</a>(<a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *dst, <span class="keywordtype">size_t</span> nBufSize, <span class="keyword">const</span> <a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a>* src, <span class="keywordtype">size_t</span> srcLen = 0)</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;{</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;<span class="preprocessor">#if defined(WIN32) || (defined(STD11) &amp;&amp; defined(__STDC_LIB_EXT1__))</span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    wcscpy_s(dst, nBufSize, src);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    <span class="keywordflow">if</span> (srcLen == 0) srcLen = wcslen(src);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    wcsncpy(dst, src, nBufSize &lt; srcLen ? nBufSize : srcLen);</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    *(dst + nBufSize - 1) = <span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keywordflow">return</span> dst;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;}</div>
<div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="tools_8h.html#a8514632137dc62e5830efc0921eaf1a5">  381</a></span>&#160; </div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="tools_8h.html#a8514632137dc62e5830efc0921eaf1a5">sprintf_safe</a>(<span class="keywordtype">char</span> *str, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, ...)</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;{</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    va_list params;</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    va_start(params, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>);</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;<span class="preprocessor">#if defined(WIN32) || (defined(STD11) &amp;&amp; defined(__STDC_LIB_EXT1__))</span></div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    size = vsprintf_s(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="preprocessor">#elif defined(LINUX)</span></div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="keywordtype">int</span> n = vsnprintf(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;    <span class="keywordflow">if</span> (str[size - 1] != L<span class="charliteral">&#39;\0&#39;</span>) {</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        str[size - 1] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    }</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        size = n;</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    }</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;    va_end(params);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;}</div>
<div class="line"><a name="l00400"></a><span class="lineno"><a class="line" href="tools_8h.html#a127cea801588e4ce0c45b573b907e489">  400</a></span>&#160; </div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="tools_8h.html#a127cea801588e4ce0c45b573b907e489">sprintfv_safe</a>(<span class="keywordtype">char</span> *str, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, va_list&amp; params)</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;{</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;<span class="preprocessor">#if defined(WIN32) || (defined(STD11) &amp;&amp; defined(__STDC_LIB_EXT1__))</span></div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    size = vsprintf_s(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;<span class="preprocessor">#elif defined(LINUX)</span></div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <span class="keywordtype">int</span> n = vsnprintf(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    <span class="keywordflow">if</span> (str[size - 1] != L<span class="charliteral">&#39;\0&#39;</span>) {</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        str[size - 1] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    }</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;        size = n;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    }</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;    <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;}</div>
<div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="tools_8h.html#a676f0b92aacbb1f2d2a93dfcd1b98486">  416</a></span>&#160; </div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="tools_8h.html#a676f0b92aacbb1f2d2a93dfcd1b98486">wsprintfv_safe</a>(<a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *str, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *<a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, va_list&amp; params)</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;{</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;<span class="preprocessor">#if defined(WIN32) || (defined(STD11) &amp;&amp; defined(__STDC_LIB_EXT1__))</span></div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    size = vswprintf_s(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;<span class="preprocessor">#elif defined(LINUX)</span></div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    <span class="keywordtype">int</span> n = vswprintf(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;    <span class="keywordflow">if</span> (str[size - 1] != L<span class="charliteral">&#39;\0&#39;</span>) {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        str[size - 1] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        size = n;</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    }</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;}</div>
<div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="tools_8h.html#a67dfb322aaf05b8ec4ea55e8fb42254f">  432</a></span>&#160; </div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">size_t</span> <a class="code" href="tools_8h.html#a67dfb322aaf05b8ec4ea55e8fb42254f">wsprintf_safe</a>(<a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *str, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *<a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, ...)</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;{</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    va_list params;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    va_start(params, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>);</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;<span class="preprocessor">#if defined(WIN32) || (defined(STD11) &amp;&amp; defined(__STDC_LIB_EXT1__))</span></div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;    size = vswprintf_s(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;<span class="preprocessor">#elif defined(LINUX)</span></div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    <span class="keywordtype">int</span> n = vswprintf(str, size, <a class="code" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a>, params);</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <span class="keywordflow">if</span> (str[size - 1] != L<span class="charliteral">&#39;\0&#39;</span>) {</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        str[size - 1] = L<span class="charliteral">&#39;\0&#39;</span>;</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    }</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        size = n;</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    va_end(params);</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;}</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;<span class="preprocessor">#endif // __TOOLS_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astruct___f_i_l_e_f_i_n_d_i_n_f_o___html_a3e6510c0f73543a8d7adf32441236814"><div class="ttname"><a href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a3e6510c0f73543a8d7adf32441236814">_FILEFINDINFO_::fwFileAttributes</a></div><div class="ttdeci">DWORD fwFileAttributes</div><div class="ttdoc">文件属性 参见:文件属性</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00314">tools.h:314</a></div></div>
<div class="ttc" id="atools_8h_html_a676f0b92aacbb1f2d2a93dfcd1b98486"><div class="ttname"><a href="tools_8h.html#a676f0b92aacbb1f2d2a93dfcd1b98486">wsprintfv_safe</a></div><div class="ttdeci">size_t wsprintfv_safe(WCHAR *str, size_t size, const WCHAR *format, va_list &amp;params)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00416">tools.h:416</a></div></div>
<div class="ttc" id="aunion___l_a_r_g_e___i_n_t_e_g_e_r_html_a7c7e7043ad457a46ef6f6a698606b921"><div class="ttname"><a href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a7c7e7043ad457a46ef6f6a698606b921">_LARGE_INTEGER::u</a></div><div class="ttdeci">struct _LARGE_INTEGER::@1 u</div></div>
<div class="ttc" id="atools_8h_html_a65c91f8d7af3c67b8a21e089fdddd0fe"><div class="ttname"><a href="tools_8h.html#a65c91f8d7af3c67b8a21e089fdddd0fe">TCHAR</a></div><div class="ttdeci">#define TCHAR</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00187">tools.h:187</a></div></div>
<div class="ttc" id="aunion___l_a_r_g_e___i_n_t_e_g_e_r_html_a7347711eef80393843cf49555b636a32"><div class="ttname"><a href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a7347711eef80393843cf49555b636a32">_LARGE_INTEGER::DUMMYSTRUCTNAME</a></div><div class="ttdeci">struct _LARGE_INTEGER::@0 DUMMYSTRUCTNAME</div></div>
<div class="ttc" id="atools_8h_html_a0de140856ee1eae76d64163a3c87b5e9"><div class="ttname"><a href="tools_8h.html#a0de140856ee1eae76d64163a3c87b5e9">SOCKADDR_IN6</a></div><div class="ttdeci">sockaddr_in6 SOCKADDR_IN6</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00143">tools.h:143</a></div></div>
<div class="ttc" id="atools_8h_html_a0b73c5631b3d84850be4744657e3c920"><div class="ttname"><a href="tools_8h.html#a0b73c5631b3d84850be4744657e3c920">FILEFINDINFO</a></div><div class="ttdeci">struct _FILEFINDINFO_ FILEFINDINFO</div><div class="ttdoc">文件查找信息</div></div>
<div class="ttc" id="atools_8h_html_a1638d44e4150a318c2791b2f719787aa"><div class="ttname"><a href="tools_8h.html#a1638d44e4150a318c2791b2f719787aa">LARGE_INTEGER</a></div><div class="ttdeci">union _LARGE_INTEGER LARGE_INTEGER</div></div>
<div class="ttc" id="atools_8h_html_adbfeae90dcbc6d1e23fc52bb64339f46"><div class="ttname"><a href="tools_8h.html#adbfeae90dcbc6d1e23fc52bb64339f46">DWORD64</a></div><div class="ttdeci">unsigned long long DWORD64</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00135">tools.h:135</a></div></div>
<div class="ttc" id="aunion___l_a_r_g_e___i_n_t_e_g_e_r_html_a34beb9c05c3a2982d57fc450cc934ae3"><div class="ttname"><a href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a34beb9c05c3a2982d57fc450cc934ae3">_LARGE_INTEGER::QuadPart</a></div><div class="ttdeci">LONGLONG QuadPart</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00211">tools.h:211</a></div></div>
<div class="ttc" id="atools_8h_html_a8514632137dc62e5830efc0921eaf1a5"><div class="ttname"><a href="tools_8h.html#a8514632137dc62e5830efc0921eaf1a5">sprintf_safe</a></div><div class="ttdeci">size_t sprintf_safe(char *str, size_t size, const char *format,...)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00381">tools.h:381</a></div></div>
<div class="ttc" id="aunion___l_a_r_g_e___i_n_t_e_g_e_r_html_a31b355710eddf921785ba5d27883f511"><div class="ttname"><a href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a31b355710eddf921785ba5d27883f511">_LARGE_INTEGER::LowPart</a></div><div class="ttdeci">DWORD LowPart</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00204">tools.h:204</a></div></div>
<div class="ttc" id="atools_8h_html_af559a7ae68520d96f21d0655d6792508"><div class="ttname"><a href="tools_8h.html#af559a7ae68520d96f21d0655d6792508">LONGLONG</a></div><div class="ttdeci">long long LONGLONG</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00129">tools.h:129</a></div></div>
<div class="ttc" id="atools_8h_html_aad61bc3eae1804d8784adebdce0721d3"><div class="ttname"><a href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a></div><div class="ttdeci">wchar_t WCHAR</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00131">tools.h:131</a></div></div>
<div class="ttc" id="atools_8h_html_a67369fb17cf5023754a0db996c81a6af"><div class="ttname"><a href="tools_8h.html#a67369fb17cf5023754a0db996c81a6af">PFILEFINDINFO</a></div><div class="ttdeci">struct _FILEFINDINFO_ * PFILEFINDINFO</div></div>
<div class="ttc" id="atools_8h_html_a18d15c208d9d4762f1fadbf52a39c7f3"><div class="ttname"><a href="tools_8h.html#a18d15c208d9d4762f1fadbf52a39c7f3">SOCKADDR_STORAGE</a></div><div class="ttdeci">sockaddr_storage SOCKADDR_STORAGE</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00145">tools.h:145</a></div></div>
<div class="ttc" id="awarning_8h_html"><div class="ttname"><a href="warning_8h.html">warning.h</a></div></div>
<div class="ttc" id="atools_8h_html_af632da489ebc3708ec3ab6791ee53fa4"><div class="ttname"><a href="tools_8h.html#af632da489ebc3708ec3ab6791ee53fa4">ULONG</a></div><div class="ttdeci">unsigned long ULONG</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00136">tools.h:136</a></div></div>
<div class="ttc" id="atools_8h_html_ac2a430108882c24f0c36e13ec41d4691"><div class="ttname"><a href="tools_8h.html#ac2a430108882c24f0c36e13ec41d4691">intptr</a></div><div class="ttdeci">long intptr</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00141">tools.h:141</a></div></div>
<div class="ttc" id="atools_8h_html_ab82a2bbb5954c74bdfca135815c3a1c9"><div class="ttname"><a href="tools_8h.html#ab82a2bbb5954c74bdfca135815c3a1c9">strcpy_safe</a></div><div class="ttdeci">char * strcpy_safe(char *dst, size_t nBufSize, const char *src, size_t srcLen=0)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00357">tools.h:357</a></div></div>
<div class="ttc" id="atools_8h_html_a8c4b94ef011acbcc6359107d2efb3d25"><div class="ttname"><a href="tools_8h.html#a8c4b94ef011acbcc6359107d2efb3d25">ThreadRoutine</a></div><div class="ttdeci">DWORD(* ThreadRoutine)(void *arg)</div><div class="ttdoc">线程函数指针</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00334">tools.h:334</a></div></div>
<div class="ttc" id="atools_8h_html_a4ae1dab0fb4b072a66584546209e7d58"><div class="ttname"><a href="tools_8h.html#a4ae1dab0fb4b072a66584546209e7d58">BYTE</a></div><div class="ttdeci">unsigned char BYTE</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00133">tools.h:133</a></div></div>
<div class="ttc" id="atools_8h_html_ab99ded389af74001a6298fc9e44e74e5"><div class="ttname"><a href="tools_8h.html#ab99ded389af74001a6298fc9e44e74e5">MAX_PATH</a></div><div class="ttdeci">#define MAX_PATH</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00149">tools.h:149</a></div></div>
<div class="ttc" id="atools_8h_html_ae44d8d5d0e473c82cf8f2021a86cb6a4"><div class="ttname"><a href="tools_8h.html#ae44d8d5d0e473c82cf8f2021a86cb6a4">fsize_t</a></div><div class="ttdeci">INTPTR_T fsize_t</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00237">tools.h:237</a></div></div>
<div class="ttc" id="atools_8h_html_a0fd4fe576501753d7573c0b1e623f289"><div class="ttname"><a href="tools_8h.html#a0fd4fe576501753d7573c0b1e623f289">INTPTR_T</a></div><div class="ttdeci">#define INTPTR_T</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00234">tools.h:234</a></div></div>
<div class="ttc" id="atools_8h_html_a67dfb322aaf05b8ec4ea55e8fb42254f"><div class="ttname"><a href="tools_8h.html#a67dfb322aaf05b8ec4ea55e8fb42254f">wsprintf_safe</a></div><div class="ttdeci">size_t wsprintf_safe(WCHAR *str, size_t size, const WCHAR *format,...)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00432">tools.h:432</a></div></div>
<div class="ttc" id="atools_8h_html_a798af1e30bc65f319c1a246cecf59e39"><div class="ttname"><a href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a></div><div class="ttdeci">unsigned int DWORD</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00134">tools.h:134</a></div></div>
<div class="ttc" id="atools_8h_html_a57be03562867144161c1bfee95ca8f7c"><div class="ttname"><a href="tools_8h.html#a57be03562867144161c1bfee95ca8f7c">UINT64</a></div><div class="ttdeci">unsigned long long UINT64</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00130">tools.h:130</a></div></div>
<div class="ttc" id="atools_8h_html_a74093316688c865a04323c2d0ab40246"><div class="ttname"><a href="tools_8h.html#a74093316688c865a04323c2d0ab40246">SOCKADDR_IN</a></div><div class="ttdeci">sockaddr_in SOCKADDR_IN</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00142">tools.h:142</a></div></div>
<div class="ttc" id="atools_8h_html_a36cb3b01d81ffd844bbbfb54003e06ec"><div class="ttname"><a href="tools_8h.html#a36cb3b01d81ffd844bbbfb54003e06ec">UINT</a></div><div class="ttdeci">unsigned int UINT</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00139">tools.h:139</a></div></div>
<div class="ttc" id="a_string_tools_8cpp_html_a68e59768ff7f1f1fe4dca5ccaa26de28"><div class="ttname"><a href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a></div><div class="ttdeci">std::string format(const char *mat,...)</div><div class="ttdef"><b>Definition:</b> <a href="_string_tools_8cpp_source.html#l00127">StringTools.cpp:127</a></div></div>
<div class="ttc" id="a_time_8h_html"><div class="ttname"><a href="_time_8h.html">Time.h</a></div></div>
<div class="ttc" id="aunion___l_a_r_g_e___i_n_t_e_g_e_r_html_a9b8939bdf30481e7477d6094c107e65b"><div class="ttname"><a href="union___l_a_r_g_e___i_n_t_e_g_e_r.html#a9b8939bdf30481e7477d6094c107e65b">_LARGE_INTEGER::HighPart</a></div><div class="ttdeci">LONG HighPart</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00205">tools.h:205</a></div></div>
<div class="ttc" id="atools_8h_html_ac3247c51e4e3de674affb32998e133e2"><div class="ttname"><a href="tools_8h.html#ac3247c51e4e3de674affb32998e133e2">BOOL</a></div><div class="ttdeci">unsigned int BOOL</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00137">tools.h:137</a></div></div>
<div class="ttc" id="astruct___f_i_l_e_f_i_n_d_i_n_f_o___html_aeac0f7a7b532ebfa75dc0becaf579692"><div class="ttname"><a href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#aeac0f7a7b532ebfa75dc0becaf579692">_FILEFINDINFO_::tUpdateTime</a></div><div class="ttdeci">time_t tUpdateTime</div><div class="ttdoc">文件修改的时间</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00317">tools.h:317</a></div></div>
<div class="ttc" id="astruct___f_i_l_e_f_i_n_d_i_n_f_o___html"><div class="ttname"><a href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html">_FILEFINDINFO_</a></div><div class="ttdoc">文件查找信息</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00311">tools.h:311</a></div></div>
<div class="ttc" id="atools_8h_html_a127db5f6472e5441ce11cc031958c3f5"><div class="ttname"><a href="tools_8h.html#a127db5f6472e5441ce11cc031958c3f5">wcscpy_safe</a></div><div class="ttdeci">WCHAR * wcscpy_safe(WCHAR *dst, size_t nBufSize, const WCHAR *src, size_t srcLen=0)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00369">tools.h:369</a></div></div>
<div class="ttc" id="aunion___l_a_r_g_e___i_n_t_e_g_e_r_html"><div class="ttname"><a href="union___l_a_r_g_e___i_n_t_e_g_e_r.html">_LARGE_INTEGER</a></div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00202">tools.h:202</a></div></div>
<div class="ttc" id="astruct___f_i_l_e_f_i_n_d_i_n_f_o___html_ad9c9e6207a688f672d689fa75f83da1a"><div class="ttname"><a href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#ad9c9e6207a688f672d689fa75f83da1a">_FILEFINDINFO_::tCreateTime</a></div><div class="ttdeci">time_t tCreateTime</div><div class="ttdoc">文件创建的时间</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00316">tools.h:316</a></div></div>
<div class="ttc" id="astruct___f_i_l_e_f_i_n_d_i_n_f_o___html_a857b9e763ea3e183a8e6a582af305c82"><div class="ttname"><a href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a857b9e763ea3e183a8e6a582af305c82">_FILEFINDINFO_::szFileName</a></div><div class="ttdeci">TCHAR szFileName[MAX_PATH]</div><div class="ttdoc">文件名称</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00313">tools.h:313</a></div></div>
<div class="ttc" id="atools_8h_html_a5850d5316caf7f4cedd742fdf8cd7c02"><div class="ttname"><a href="tools_8h.html#a5850d5316caf7f4cedd742fdf8cd7c02">USHORT</a></div><div class="ttdeci">unsigned short USHORT</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00138">tools.h:138</a></div></div>
<div class="ttc" id="atools_8h_html_ae1e6edbbc26d6fbc71a90190d0266018"><div class="ttname"><a href="tools_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a></div><div class="ttdeci">unsigned int UINT32</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00140">tools.h:140</a></div></div>
<div class="ttc" id="astruct___f_i_l_e_f_i_n_d_i_n_f_o___html_a12703399394ee01b4753a90543f1e3c6"><div class="ttname"><a href="struct___f_i_l_e_f_i_n_d_i_n_f_o__.html#a12703399394ee01b4753a90543f1e3c6">_FILEFINDINFO_::dwFilesize</a></div><div class="ttdeci">INT64 dwFilesize</div><div class="ttdoc">文件大小,如果是目录统一为0字节</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00315">tools.h:315</a></div></div>
<div class="ttc" id="atools_8h_html_a127cea801588e4ce0c45b573b907e489"><div class="ttname"><a href="tools_8h.html#a127cea801588e4ce0c45b573b907e489">sprintfv_safe</a></div><div class="ttdeci">size_t sprintfv_safe(char *str, size_t size, const char *format, va_list &amp;params)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00400">tools.h:400</a></div></div>
<div class="ttc" id="atools_8h_html_afdd49e476b36e84a9d6d171110e79940"><div class="ttname"><a href="tools_8h.html#afdd49e476b36e84a9d6d171110e79940">SOCKADDR</a></div><div class="ttdeci">sockaddr SOCKADDR</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00144">tools.h:144</a></div></div>
<div class="ttc" id="atools_8h_html_a6a2b55a6391419ed0b7b9da06e094b4b"><div class="ttname"><a href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a></div><div class="ttdeci">long long INT64</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00132">tools.h:132</a></div></div>
<div class="ttc" id="atools_8h_html_a9154c0d0c21af4686624543215b4e5f2"><div class="ttname"><a href="tools_8h.html#a9154c0d0c21af4686624543215b4e5f2">LONG</a></div><div class="ttdeci">int LONG</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00128">tools.h:128</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
